#ifndef __SHELL_CMD_H__
#define __SHELL_CMD_H__

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#define TIME_DEBUG

#ifdef TIME_DEBUG
static inline void dump_time(char *tag, char *flag)
{
	struct timeval tv;
	double now_s;

	gettimeofday(&tv, NULL);
	now_s = tv.tv_sec + (double)tv.tv_usec * 0.000001;

	printf("TIME[%s:%s]: %06fs\n", tag, flag, now_s);
}
#else
#define dump_time(tag, flag)
#endif

#endif /* __SHELL_CMD_H__ */
